package com.cc.mall.controller;

import java.util.Arrays;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.cc.mall.entity.OfflineOrderProductEntity;
import com.cc.mall.service.OfflineOrderProductService;
import com.cc.common.utils.R;



/**
 * 
 *
 * @author leifengyang
 * @email leifengyang@gmail.com
 * @date 2020-12-09 20:57:52
 */
@RestController
@RequestMapping("mall/offlineorderproduct")
public class OfflineOrderProductController {
    @Autowired
    private OfflineOrderProductService offlineOrderProductService;

    /**
     * 列表
     */


//    /**
//     * 信息
//     */
//    @RequestMapping("/info/{id}")
//    //@RequiresPermissions("mall:offlineorderproduct:info")
//    public R info(@PathVariable("id") Long id){
//		OfflineOrderProductEntity offlineOrderProduct = offlineOrderProductService.getById(id);
//
//        return R.ok().put("offlineOrderProduct", offlineOrderProduct);
//    }
//
//    /**
//     * 保存
//     */
//    @RequestMapping("/save")
//    //@RequiresPermissions("mall:offlineorderproduct:save")
//    public R save(@RequestBody OfflineOrderProductEntity offlineOrderProduct){
//		offlineOrderProductService.save(offlineOrderProduct);
//
//        return R.ok();
//    }
//
//    /**
//     * 修改
//     */
//    @RequestMapping("/update")
//    //@RequiresPermissions("mall:offlineorderproduct:update")
//    public R update(@RequestBody OfflineOrderProductEntity offlineOrderProduct){
//		offlineOrderProductService.updateById(offlineOrderProduct);
//
//        return R.ok();
//    }
//
//    /**
//     * 删除
//     */
//    @RequestMapping("/delete")
//    //@RequiresPermissions("mall:offlineorderproduct:delete")
//    public R delete(@RequestBody Long[] ids){
//		offlineOrderProductService.removeByIds(Arrays.asList(ids));
//
//        return R.ok();
//    }

}
